package cn.hh.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
/*分页查询需要的数据*/
@Data
public class PageList<T> {
    /*总数*/
    private Integer total;
    /*前端从这里面获取数据*/
    private List<T> bags = new ArrayList<>();
    /*无参构造*/
    public PageList(){}
    /*有参构造*/
    public PageList(Integer total, List<T> bags) {
        this.total = total;
        this.bags = bags;
    }
}
